bug fixes in login and add pages