Added loggedIn.js
Fixed layout bug