login functionality updates as well as message rendering