1st question is isit ok to have more than 1 form per page?
Yes, it's ok.
isit ok for form input[name] to be reused? eg. both login and register will have username & passwords field
Yes, it's ok. You can place two inputs with the same name (in different forms). Only 'id' attribute must be unique. You should set different actions for form. For example, the first form will be <form action='login.php'>, the second - <form action='register.php'>
1 form. use JS to hide confirmPassword field then at server side check if there is a confirmPassword is filled? upon typing this, this does not seem like a good idea...
It's better to create input with type=hidden and place action type in it:
<input type='hidden' name='action' value='login'>
You can change value with Js.
Also you can create two submit buttons in one form:
<input type='submit' name='do_login' value='Login'>
<input type='submit' name='do_register' value='Register'>
If login button pressed, the server will receive 'do_login' argument. Else, it will receive 'do_register'.