writing login view