implemented forms for register and sign in pages and added authentication