adding beofre action to application controller to authenticate user, updating layouts for sing-in/out/up, checking database config (it's all good).