Modified navbar controller with better logic - controls navbar login actions and dynamic css