reimplementet login mechanism and added register page
fixed some visual issues