added login mechanism to other layouts