Added login functionality, solidified User and UserAlbum relations and rules