bugfix with login and post page