How to check if user is allredy login and without login using java

Here is my testcase

1> after splash screen display login screen (with mobile number and password) and signup link.
2>if user is already registered page should redirect on dashboard.
3>if new user page redirected on register page. with validation

please help i am new in appium .

please tell me which framework should i use for small module .