Create Login and Logout form

As well as all corresponding functions